package org.mineground.commands.player;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandException;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class Rules implements CommandExecutor {
    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) throws CommandException {
	Player player = (Player) sender;
	player.sendMessage(ChatColor.GOLD + "----------------------- Rules ------------------------");
	player.sendMessage(ChatColor.RED + "* 1. Behave.");
	player.sendMessage(ChatColor.RED + "* 2. Use your common sense.");
	player.sendMessage(ChatColor.RED + "* 3. Respect others and their creations.");
	player.sendMessage(ChatColor.RED + "* 4. No Griefing, it is not tolerated.");
	player.sendMessage(ChatColor.RED + "* 5. TNT may be used, but not abused.");
	player.sendMessage(ChatColor.RED + "* 6. Fly Mod is allowed, but not for exploring.");
	player.sendMessage(ChatColor.RED + "* 7. Have fun.");
	player.sendMessage(ChatColor.GOLD + "-----------------------------------------------------");
	return true;
    }
}
